/*
 * @Author: C.
 * @Date: 2023-04-14 16:59:37
 */
//销售订单主页配置
import { getTableMaps, getFormMaps } from '/~/utils/help/createFields';
// import { useI18n } from '/@/hooks/web/useI18n';
// const { t } = useI18n();
import { detailTableColums } from '/~/utils/help/erphelp';
export const tableColumns = getTableMaps([
  [
    'BillId',
    {
      componentProps: {
        routerName: 'Sa_Order_Detail',
        // 效果如{Id:record.cId}
        routeKeyValue: [['Id', 'BillId']],
        // routerMethod 默认 query
      },
    },
  ],
  'State',
  'CustomerName',
  'DeliveryDate',
  ...detailTableColums,
  { dataIndex: 'ItemRemarks', title: '备注' },
  'SalesReps',
  'Currency',
  'CreationDate',
  'Creator',
]);
export const formSchemas = getFormMaps(['Keyword', 'DatePeriod', 'Remarks']);
